import { Module } from '@nestjs/common';
import { StudentService } from './student.service';
import { StudentController } from './student.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { jwtConstants } from 'src/auth/constants';
import { JwtModule } from '@nestjs/jwt';
import { AnyStudent } from './entities/any.student.entity';
import { AnyCourse } from './entities/any.course.entity';

@Module({
  imports: [TypeOrmModule.forFeature([AnyStudent, AnyCourse]), JwtModule.register({
    secret: jwtConstants.secret,
    signOptions: { expiresIn: jwtConstants.expiresIn }
  })],
  controllers: [StudentController],
  providers: [StudentService,],
})
export class StudentModule {}
